class ELEMENT_PARAM
	def initialize
		@HeadFrame = 0
		@DataSize = 0
	end

	def Set(data_size, head_frame)
		@HeadFrame = head_frame
		@DataSize = data_size
	end

	def GetDataIdx(frame)
		if frame < @DataSize then
			return @HeadFrame+frame
		else
			return @HeadFrame+(@DataSize-1)
		end
	end
end
